import kgRequest from '../..'
import type { ILoginReturn } from './type'
import type { IAccount } from '@/types'

enum apiUrls {
  LOGIN = '/login',
  MENU = '/menu',
}
//登录
export function postAccountloginApi(data: IAccount) {
  return kgRequest.post<ILoginReturn>({
    url: apiUrls.LOGIN,
    data
  })
}

//获取用户菜单
export function getUserMenusByRoleIdApi() {
  return kgRequest.post({
    url: `${apiUrls.MENU}`
  })
}






